#include <singleton_pattern.h>
#include <iostream>

void SingleObject::showMessage()
{
    std::cout << "Hello world!" << std::endl;
}

SingleObject* SingleObject::getInstance()
{
    if (!instance) {
        instance = new SingleObject();
    }
    return instance;
}

/*
    SingleObject::getInstance()->showMessage();
*/
